<template>
  <v-app>
    <router-view></router-view>
  </v-app>
</template>

<script lang="ts">
import { Component, Watch } from "vue-property-decorator";
import { mixins } from "vue-class-component";
import windowSize from "@/mixins/windowSize";
import axios from "axios"

@Component
export default class App extends mixins(windowSize) {
  isMobile = false;

  created() {
    axios.get("/web/user/getUserList").then((res) => {
      console.log(res);
    });

    this.$router.push({path: '/'})
  }

  @Watch("MobileVerification", { immediate: true })
  onWindowSize(val: string, oldVal: string) {
    this.isMobile = this.MobileVerification;
    localStorage.setItem("isMobile", this.MobileVerification.toString());
    this.$store.commit("setIsMobile", this.MobileVerification.toString());
  }
}
</script>
